<?php
	/**
	 * 自定义函数
	 */
	 //按最新排序
	 function isnew($a,$b){
	 	if($a['goods_uptime']==$b['goods_uptime']){
	 		return 0;
	 	}
		return $a['goods_uptime']>$b['goods_uptime']?-1:1;
	 }
	//按高价格排序
	function pricehight($a,$b){
		if($a['shop_price']==$b['shop_price']){
	 		return 0;
	 	}
		return $a['shop_price']>$b['shop_price']?-1:1;
	}
	//按价格低排序
	function pricelow($a,$b){
		if($a['shop_price']==$b['shop_price']){
	 		return 0;
	 	}
		return $a['shop_price']<$b['shop_price']?-1:1;
	}
	
	
